var itcast= {
    getRouterName:function(str){
        let index = location.href.indexOf('?');
        let routerName = '';
        if (index == -1) {
            routerName = str.substring(str.lastIndexOf('/') + 1)
        } else {
            routerName = str.substring(str.lastIndexOf('/') + 1, str.indexOf('?'))
        }
        return routerName;
    }
}